<template>
  <div id="app">
    <div class="mask" v-show="isShowLoad">
        <div class="loading">
          <div class="loading-animate">
            <div class="loading-animate-unit"></div>
          </div>
          <span>加载中...{{isShowLoad}}</span>
        </div>
    </div>
    
    <router-view></router-view>
  </div>
</template>

<script>
import { mapGetters,mapMutations } from 'vuex'
export default {
  
  name: 'app',
  data(){
    return {
      loadingShow:this.$store.state.isShowLoading
    }
  },
  computed:{
    ...mapGetters([
      'getisShowLoad'
    ]),
    isShowLoad(){
      return this.$store.state.isShowLoading;
    }
  },
  methods:{
    ...mapMutations({
      
    })
  },
  created(){
  }
}
</script>

<style lang="scss">
  @import 'scss/reset.scss';
  @import 'scss/swiper.scss';

  
</style>
